<%@ page language="java" pageEncoding="utf-8"%>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="author" content="seal">
<title>unicom</title>
<link href="${prcs}/css/def/img/favicon.png" rel="bookmark" type="image/x-icon" />
<link href="${prcs}/css/def/img/favicon.png" rel="icon" type="image/x-icon" /> 
<link href="${prcs}/css/def/img/favicon.png" rel="shortcut icon" type="image/x-icon" />

<%-- <link href="${prcs}/css/def/bootstrap/css/bootstrap.min.css" rel="stylesheet"> --%>
<link href="${prcs}/css/def/bootstrap/validator/bootstrapValidator.min.css" rel="stylesheet">
<link href="${prcs}/js/DataTables/datatables.min.css" rel="stylesheet">
<link href="${prcs}/css/def/frm/common/modal.css" rel="stylesheet">
<!--[if lt IE 9]>
  <script src="${prcs}/js/bootstrap/assets/html5shiv.min.js"></script>
  <script src="${prcs}/js/bootstrap/assets/respond.min.js"></script>
  <script src="${prcs}/js/jquery/plugin/json2.js"></script>
<![endif]-->
<script src="${prcs}/js/jquery/jquery-1.12.4.min.js"></script>
<script src="${prcs}/js/DataTables/datatables.js"></script>
<script src="${prcs}/js/jquery/plugin/jquery.blockUI.js"></script>
<script src="${prcs}/js/bootstrap/validator/bootstrapValidator.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="${prcs}/js/bootstrap/assets/ie10-viewport-bug-workaround.js"></script>
<script src="${prcs}/js/jquery/plugin/datatables/js/ellipsis.js"></script>
<script src="${prcs}/js/jquery/plugin/handlebars-v3.0.1.js"></script>

<script src="${prcs}/js/frm/base/console.js"></script>
<script src="${prcs}/js/frm/sys/commjs.js"></script>
<script src="${prcs}/js/frm/base/datatables.settings.js"></script>

<script type="text/javascript">
var prc = '${prc}';
var prcs = '${prcs}';
function getConfigVal(code){
	var result={};
	$.ajax({
		type:"post",
		url:prc+"/config/getVal",
		"contentType": 'application/x-www-form-urlencoded; charset=UTF-8',
		data:{
			code:code
		},
		async:false,
		dataType:"json",
		success:function(data){
			result=data.result;
		}
	});
	return result;
}

function getLength(code){
	var result=getConfigVal(code);
	if(null != result){
		var menuLength = result.split(",");
		//alert(menuLength);
		for(i=0;i<menuLength.length;i++){
			var aa =parseInt(menuLength[i]);
			menuLength[i] = aa;
		}
		return menuLength;
	}
	return "";
}
</script>